using System;
using iPhOwa.Exchange.Attributes;
using iPhOwa.Exchange.ContentClasses.Fields;

namespace iPhOwa.Exchange.ContentClasses
{
	/// <summary>
	/// Exchange task entity.
	/// </summary>
	[ExchangeContentClass(ContentClassNames.Task)]
	public class Task : Item
	{
		/// <summary>
		/// The taks due date.
		/// </summary>
		[ExchangeField(TaskFields.DateDue)]
		public DateTime DueDate { get; set; }

		/// <summary>
		/// The message subject.
		/// </summary>
		[ExchangeField(MessageFields.Subject)]
		public override string Subject { get; set; }

		/// <summary>
		/// Path to the icon.
		/// </summary>
		public override string IconPath
		{
			get { return "~/Images/icon-task.gif"; }
		}
	}
}